Component({
  mixins: [],
  data: {
    animation:'',
		rules:'',
		bg:{
			url:"https://img.alicdn.com/imgextra/i1/4161056916/O1CN01ASnHbz20xZqhsDFUs_!!4161056916.png",
			width:657,
			height:756
		}
  },
  props: {
		mineEnergy:''
  },
  onInit(){
    //console.info("1111",this.props.rules)
  },
  didMount() {
    this.animation = my.createAnimation();

    this.animation.translate('0%','150%').step()
    this.setData({ animation: this.animation.export() })

  },
  didUpdate() {},
  didUnmount() {},
  methods: {

		backMain(){
			this.$page.backMain()
		},

    closeList(){
      
      this.animation.translate('0%','-150%').step()
      this.setData({ animation: this.animation.export() })

      setTimeout(() => {
        this.$page.setData({
          isShowTaskRes:false
				})
				
				my.navigateBack();
      }, 400);
    }

  },
});